package com.winning.yanghao.designpattern.singleton.lazy;

/**
 * 懒汉模式:线程不安全，懒加载
 */
public class LazyOne {

    private LazyOne(){}

    private static LazyOne lazy = null;

    public static LazyOne getInstance(){
        if(lazy == null){
            lazy = new LazyOne();
        }

        return lazy;
    }

}
